package com.by.common.ex;

import java.util.Map;

/**
 * 自定义的验证异常类
 */
public class ValidateException extends RuntimeException{

    Map<String, String> errors;// 记录错误信息

    public ValidateException(Map errors) {
        super("验证异常");
        this.errors = errors;
    }

    public Map<String, String> getErrors() {
        return errors;
    }

    public void setErrors(Map<String, String> errors) {
        this.errors = errors;
    }
}
